package mine.imgproc;

import java.awt.Dimension;
import java.awt.image.BufferedImage;

import mine.core.Cell;

/**
 * The Interface Img2Cells, functions needed for interaction between image and cells.
 */
public interface Img2Cells {
	
	/**
	 * Gets the current chess cells situation.
	 *
	 * @return the current chess cells
	 */
	Cell[][] getCurrentChessCells();
	
	/**
	 * Gets where to click one cell.
	 *
	 * @param indexX the index x
	 * @param indexY the index y
	 * @return the cell click point
	 */
	Dimension getCellClickPoint(int indexX, int indexY);
	
	/**
	 * Update current stored buffered image.
	 *
	 * @param currentScreen the current screen
	 */
	void updateCurrentImage(BufferedImage currentScreen);
	
}
